import request from "@/utils/http/request";
// console.log(request,'request')
// 发送验证码
export function sendCode(obj) {
  return request({
    url: `login/sendCode`,
    method: "POST",
    params: obj,
  });
}

// 登录
export function submit(obj: {
  channelCode: String;
  phone: Number;
  code: Number;
  grantType: String;
}) {
  return request({
    url: `login/submit`,
    method: "post",
    params: obj,
  });
}
